<?php
/**
 * Description
 * 
 * PHP version 7
 * 
 * @category Custom
 * @package  Custom
 * @author   ryu <mo5467@126.com>
 * @date     2020-04-24 00:41:38
 * @lastTime 2020-05-01 23:06:27
 * @license  https://opensource.org/licenses/MIT MIT License
 * @link     none
 */

namespace Test\Unit;

use Design\Structural\Composite\Form;
use Design\Structural\Composite\TextElement;
use Design\Structural\Composite\InputElement;

class CompositeTest extends \Test\BaseTest
{


    public function testRender()
    {
        $form = new Form();
        $form->addElement(new TextElement('Email:'));
        $form->addElement(new InputElement());

        $this->assertSame(
            '<form><p>Email:</p><input type="text" /></form>',
            $form->render()
        );

    }//end testRender()


}//end class
